<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <title>页面</title>
  <link href="<@toParam code="PATH"/>/hplus/css/bootstrap.min.css" rel="stylesheet">
  <link href="<@toParam code="PATH"/>/hplus/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
  <link href="<@toParam code="PATH"/>/hplus/css/style.min.css" rel="stylesheet">
  <link href="<@toParam code="PATH"/>/hplus/css/hsys.extend.css" rel="stylesheet">
</head>

<body style="padding: 0 5px">
	<div id="AdvanceSearch" style="padding:15px;display: none">
		<form class="form-horizontal" novalidate="novalidate" onsubmit="return bootstrapTableRefresh();">
			<div class="form-group">
	    	<label class="col-xs-3 control-label">用户名：</label>
	      <div class="col-xs-8"><input type="text" name="username" class="form-control"/></div>
	    </div>
			<div class="form-group">
	    	<label class="col-xs-3 control-label">全名：</label>
	      <div class="col-xs-8"><input type="text" name="fullname" class="form-control"/></div>
	    </div>
	    <div class="form-group">
	    	<div class="col-xs-8 col-xs-offset-3">
	      	<button type="reset" class="btn btn-default">清空</button>&nbsp;
	      	<button type="submit" class="btn btn-primary">开始查询</button>
	      </div>
	    </div>
		</form>
	</div>
	<div id="toolbar">
		<button onclick="layer.open({area: ['450px', '460px'],content: 'addEditUser',type: 2,title: '新增'});" type="button" class="btn btn-outline btn-default"><i class="glyphicon glyphicon-plus"></i></button>
		<button onclick="layer.open({area: ['450px', 'auto'],content:$('#AdvanceSearch'),type:1,shade: false,title:'搜索'});" type="button" class="btn btn-outline btn-default"><i class="glyphicon glyphicon-search"></i></button>
	</div>
	<table id="bootstrapTable" data-id-field="id" data-url="userList" data-sort-name="id" data-sort-order="desc">
		<thead>
			<tr>
				<th data-formatter="xuhaoFormatter" data-align="center" data-width="70px">序号</th>
				<th data-field="username" data-align="center">用户名</th>
				<th data-field="fullname" data-align="center">全名</th>
				<th data-field="email" data-align="center">邮箱</th>
				<th data-field="phone" data-align="center">手机号</th>
				<th data-field="enable_flag_cn" data-align="center">状态</th>
				<th data-field="create_time" data-align="center">创建时间</th>
				<th data-formatter="caozuoFormatter">操作</th>
			</tr>
		</thead>
	</table>
  <script src="<@toParam code="PATH"/>/hplus/js/jquery.min.js"></script>
  <script src="<@toParam code="PATH"/>/hplus/js/bootstrap.min.js"></script>
  <script src="<@toParam code="PATH"/>/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
  <script src="<@toParam code="PATH"/>/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  <script src="<@toParam code="PATH"/>/hplus/js/plugins/layer/layer.min.js"></script>
  <script src="<@toParam code="PATH"/>/hplus/js/gcore_ext.js"></script>
  <script>
  	function caozuoFormatter(value,row,index){
  		var str = "<a href=\"javascript:\" onclick=\"layer.open({area: ['450px', '460px'],content: 'addEditUser?id="+row.id+"',type: 2,title: '编辑'});\">编辑</a>&nbsp;&nbsp;&nbsp;";
  		str = str + "<a href=\"javascript:\" onclick=\"layer.open({area: ['450px', '500px'],content: 'editUserRole?id="+row.id+"',type: 2,title: '角色'});\">角色</a>";
  		return str;
  	}
  </script>
</body>
</html>
